package com.woniuxy.intellihome.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.intellihome.entity.Admin;
import com.woniuxy.intellihome.entity.VAdmin;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2021-08-11
 */
public interface VAdminMapper extends BaseMapper<VAdmin> {

    //管理员列表展示（只展示状态为y的管理员）
    @Select("select * from v_admin")
    List<VAdmin> getAll();

}
